#include "StdAfx.h"
#include "TimestampGenerator.h"
#include <boost/date_time/posix_time/posix_time.hpp>
#include "Types.h"
 
boost::posix_time::ptime TimestampGenerator::start_time = boost::posix_time::microsec_clock::local_time(); 
TimestampGenerator::TimestampGenerator()
{
	
}
TimestampGenerator::~TimestampGenerator()
{
}
 

Timestamp TimestampGenerator::getCurrentTime()
{
	boost::posix_time::ptime currentTime;
	currentTime = boost::posix_time::microsec_clock::local_time(); 
	boost::posix_time::time_duration time_elapse;
	time_elapse = currentTime - start_time;
	return time_elapse.total_milliseconds(); 
}
